﻿using System;
using System.Collections.Generic;
using Assist;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace YArchitech.HVAC.AuxiliaryCurve
{
	public class PlaneGetPoint : AuxiliaryPointsGet
	{
		public Plane FacePlane
		{
			get
			{
				return RevitVersionFuncs.CreatePlanByNormalAndOrigin(BoostFunction.GetFaceofPoint(this.m_cmd, this.pointPick, this.element).ComputeNormal(new UV(0.0, 0.0)), this.pointPick);
			}
		}

		public PlaneGetPoint(ExternalCommandData cmdArgu, XYZ pointPickArgu, Element elementArgu, double xSideArgu, double ySideArgu, ref Dictionary<XYZ, XYZ> dicxArgu, ref Dictionary<XYZ, XYZ> dicYArgu) : base(ref dicxArgu, ref dicYArgu)
		{
			this.pointPick = pointPickArgu;
			this.element = elementArgu;
			this.xSide = xSideArgu;
			this.ySide = ySideArgu;
			this.m_cmd = cmdArgu;
		}

		public override bool GetPoints()
		{
			return false;
		}

		protected XYZ pointPick;

		protected Element element;

		protected double xSide;

		protected double ySide;

		protected ExternalCommandData m_cmd;
	}
}
